<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 麦当苗儿 <zuojiazi@vip.qq.com> <http://www.zjzit.cn>
// +----------------------------------------------------------------------

namespace Card\Model;
use Think\Model;

/**
 * 用户模型
 * @author 麦当苗儿 <zuojiazi@vip.qq.com>
 */

class SmaterialClassificationModelclass extends Model {

    public $sx_data = array();

    protected $_validate = array(
        
    );

    /**
     * 查询单条信息
     */
    public function getBackgInfo($condition = array(), $field = '*') {
        return $this->field($field)->where($condition)->find();
    }
    /**
     * 查询全部模板信息
     */
    public function getAllTemplate($limit = '',$field = '*',$order='is_default desc,id desc',$condition = array()) {
        return $this->field($field)->where($condition)->limit($limit)->order($order)->select();
    }

}
